package Tutorial;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class LoginCGEE {
	
	public static void main(String[] args) throws Exception{
		WebDriver web = new FirefoxDriver();
		web.get("http://www.cgee.org.br");
		web.findElement(By.xpath("/html/body/div[3]/div[4]/div[4]/div[2]/a[2]/img")).click();
		
		Thread.sleep(3000);
		web.findElement(By.name("username")).sendKeys("rlima");
		web.findElement(By.xpath("//*[@id='password']")).sendKeys("EYNO3U");
		web.findElement(By.xpath("/html/body/form/table/tbody/tr[2]/td[2]/table/tbody/tr[7]/td/table/tbody/tr[3]/td/input")).click();
		
	}
}
